// 查询列表接口
const queryAllCircuits = (params) => {
    return $axios({
        url: '/api/circuit/queryAllCircuits',
        method: 'post',
        data: {...params}
    })
}

const queryAllBusiness = (params) => {
    return $axios({
        url: '/api/business/queryAllBusiness',
        method: 'post',
        data: {...params}
    })
}

const queryFrontGroup = (params) => {
    return $axios({
        url: '/api/front/queryFrontGroup',
        method: 'post',
        data: {...params}
    })
}

const importNumber = (params) => {
    return $axios({
        url: '/api/front/importNumber',
        method: 'post',
        data: {...params}
    })
}

const queryAllIp = (params) => {
    return $axios({
        url: '/api/ip/queryAllIp',
        method: 'post',
        data: {...params}
    })
}

const queryAllQuality = (params) => {
    return $axios({
        url: '/api/quality/queryAllQuality',
        method: 'post',
        data: {...params}
    })
}

const queryFrontProperty= (params) => {
    return $axios({
        url: '/api/front/queryFrontProperty',
        method: 'post',
        data: {...params}
    })
}

const queryEndProperty= (params) => {
    return $axios({
        url: '/api/end/queryEndProperty',
        method: 'post',
        data: {...params}
    })
}

const showPhoto = () => {
    return $axios({
        url: '/api/image/showphoto',
        method: 'get',
    })
}

const queryAllCustomer = (params) => {
    return $axios({
        url: '/api/customer/queryAllCustomer',
        method: 'post',
        data: {...params}
    })
}

const queryAllIpType = (params) => {
    return $axios({
        url: '/api/ip/queryAllIpType',
        method: 'post',
        data: {...params}
    })
}

const queryAllNumber = (params) => {
    return $axios({
        url: '/api/front/queryAllNumber',
        method: 'post',
        data: {...params}
    })
}

const queryAllXNumber = (params) => {
    return $axios({
        url: '/api/end/queryAllXNumber',
        method: 'post',
        data: {...params}
    })
}

const queryCircuitProperty = (params) => {
    return $axios({
        url: '/api/circuit/queryCircuitProperty',
        method: 'post',
        data: {...params}
    })
}

// 删除当钱线路
const deleteCircuitProperty = (params) => {
    return $axios({
        url: '/api/circuit/deleteCircuitProperty',
        method: 'post',
        data: {...params}
    })
}

const deleteBusiness = (params) => {
    return $axios({
        url: '/api/business/deleteBusiness',
        method: 'post',
        data: {...params}
    })
}

const deleteCustomer = (params) => {
    return $axios({
        url: '/api/customer/deleteCustomer',
        method: 'post',
        data: {...params}
    })
}

const deleteIp = (params) => {
    return $axios({
        url: '/api/ip/deleteIp',
        method: 'post',
        data: {...params}
    })
}

const deleteRecharge = (params) => {
    return $axios({
        url: '/api/recharge/deleteRecharge',
        method: 'post',
        data: {...params}
    })
}

// 删除当前下游
const deleteEnd = (params) => {
    return $axios({
        url: '/api/end/deleteEnd',
        method: 'post',
        data: {...params}
    })
}

const deleteFront = (params) => {
    return $axios({
        url: '/api/front/deleteFront',
        method: 'post',
        data: {...params}
    })
}

const deleteUser = (params) => {
    return $axios({
        url: '/api/user/deleteUser',
        method: 'post',
        data: {...params}
    })
}

const queryAllEnd = (params) => {
    return $axios({
        url: '/api/end/queryAllEnd',
        method: 'post',
        data: {...params}
    })
}

const queryAllUser = (params) => {
    return $axios({
        url: '/api/user/queryAllUser',
        method: 'post',
        data: {...params}
    })
}

const queryAllFront = (params) => {
    return $axios({
        url: '/api/front/queryAllFront',
        method: 'post',
        data: {...params}
    })
}

const queryFrontDistribution = (params) => {
    return $axios({
        url: '/api/front/queryFrontDistribution',
        method: 'post',
        data: {...params}
    })
}


// 修改线路
const updateCircuitProperty = (params) => {
    return $axios({
        url: '/api/circuit/updateCircuitProperty',
        method: 'post',
        data: {...params}
    })
}

const updateBusiness = (params) => {
    return $axios({
        url: '/api/business/updateBusiness',
        method: 'post',
        data: {...params}
    })
}

const updateRecharge = (params) => {
    return $axios({
        url: '/api/recharge/updateRecharge',
        method: 'post',
        data: {...params}
    })
}

const updateIp = (params) => {
    return $axios({
        url: '/api/ip/updateIp',
        method: 'post',
        data: {...params}
    })
}

const updateCustomer = (params) => {
    return $axios({
        url: '/api/customer/updateCustomer',
        method: 'post',
        data: {...params}
    })
}

// 修改下游
const updateEnd = (params) => {
    return $axios({
        url: '/api/end/updateEnd',
        method: 'post',
        data: {...params}
    })
}

const updateFront = (params) => {
    return $axios({
        url: '/api/front/updateFront',
        method: 'post',
        data: {...params}
    })
}

const updateUser = (params) => {
    return $axios({
        url: '/api/user/updateUser',
        method: 'post',
        data: {...params}
    })
}

const addCircuitProperty = (params) => {
    return $axios({
        url: '/api/circuit/addCircuitProperty',
        method: 'post',
        data: {...params}
    })
}

const addRecharge = (params) => {
    return $axios({
        url: '/api/recharge/addRecharge',
        method: 'post',
        data: {...params}
    })
}

const addCustomer = (params) => {
    return $axios({
        url: '/api/customer/addCustomer',
        method: 'post',
        data: {...params}
    })
}

const addBusiness = (params) => {
    return $axios({
        url: '/api/business/addBusiness',
        method: 'post',
        data: {...params}
    })
}

const addIp = (params) => {
    return $axios({
        url: '/api/ip/addIp',
        method: 'post',
        data: {...params}
    })
}

// 新增下游
const addEnd = (params) => {
    return $axios({
        url: '/api/end/addEnd',
        method: 'post',
        data: {...params}
    })
}

const addFront = (params) => {
    return $axios({
        url: '/api/front/addFront',
        method: 'post',
        data: {...params}
    })
}

const addUser = (params) => {
    return $axios({
        url: '/api/user/addUser',
        method: 'post',
        data: {...params}
    })
}

const getANumber = (params) => {
    return $axios({
        url: '/api/customer/getNumber',
        method: 'post',
        data: {...params}
    })
}

const addWhite = (params) => {
    return $axios({
        url: '/api/customer/addWhite2',
        method: 'post',
        data: {...params}
    })
}

const addWhiteNumber = (params) => {
    return $axios({
        url: '/api/end/addWhite',
        method: 'post',
        data: {...params}
    })
}

const updateNumber = (params) => {
    return $axios({
        url: '/api/front/updateNumber',
        method: 'post',
        data: {...params}
    })
}

const autoUpdateNumber = (params) => {
    return $axios({
        url: '/api/front/autoUpdateNumber',
        method: 'post',
        data: {...params}
    })
}


const addNumber = (params) => {
    return $axios({
        url: '/api/front/addNumber',
        method: 'post',
        data: {...params}
    })
}

const updateWhite = (params) => {
    return $axios({
        url: '/api/customer/updateWhite',
        method: 'post',
        data: {...params}
    })
}